//
//  UserMessageModel.m
//  BigToBig
//
//  Created by yi liu on 16/8/30.
//  Copyright © 2016年 cn.cloudtp. All rights reserved.
//

#import "UserMessageModel.h"

@implementation UserMessageModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key  {
    
    if([key isEqualToString:@"id"]){
        
        self.user_id = value;
    }
    if([key isEqualToString:@"company_name"]){
        
        self.companyName = value;
    }
    if([key isEqualToString:@"job_title"]){
        
        self.jobTitle = value;
    }
    if([key isEqualToString:@"personal_website"]){
        
        self.personalWebsite = value;
    }
    if([key isEqualToString:@"self_introduction"]){
        
        self.selfIntroduction = value;
    }
    if([key isEqualToString:@"head_image"]){
        
        self.headImage = value;
    }
    if([key isEqualToString:@"user_type"]){
        
        self.userType = value;
    }
    if([key isEqualToString:@"video_number"]){
        
        self.videoNumber = value;
    }
    if([key isEqualToString:@"credit_level"]){
        
        self.creditLevel = value;
    }
    if([key isEqualToString:@"login_time"]){
        
        self.loginTime = value;
    }
    if([key isEqualToString:@"register_time"]){
        
        self.registerTime = value;
    }
    if([key isEqualToString:@"email_state"]){
        
        self.emailState = value;
    }
    if([key isEqualToString:@"telephone_state"]){
        
        self.telephoneState = value;
    }

}

+ (instancetype)UserMessageModelWithDict:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}

- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    
    if (self) {
        
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

@end
